﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DiscMaster.Web.Views.Matches
{
    public class MatchResultsGraph : System.Web.Mvc.ViewUserControl<DiscMaster.Web.Models.Match>
    {
        protected System.Web.UI.DataVisualization.Charting.Chart ResultsGraph;
        protected override void OnLoad(EventArgs e)
        {
            ResultsGraph.DataSource = Model.MatchResults.GroupBy(p => p.playerid);
            ResultsGraph.DataBind();
            
            base.OnLoad(e);
        }
    }
}
